package com.study.designPattern.observer.example2;

/**
 * @Author HBZ
 * @Date 2020/7/21 10:57
 * @Description
 */
public class ConcreteSubject extends AbstractSubject {
    @Override
    public void notifyObserver(String msg) {
        System.out.println("目标发生改变...");
        System.out.println("--------------");

        for(Observer obs:observers)
        {
           obs.response(msg);
        }
    }
}
